home *** CD-ROM | disk | FTP | other *** search
- public class CodexSound extends Codex {
- public static String aMusicName = "";
- public static int musicVolume;
-
- public static native boolean StartMusic(String var0, int var1);
-
- public static native void StopMusic();
-
- public static void PushMusic(String name, int volume) {
- aMusicName = GetMusicName();
- musicVolume = GetMusicVolume();
- StopMusic();
- StartMusic(name, volume);
- }
-
- public static void PopMusic() {
- StopMusic();
- StartMusic(aMusicName, musicVolume);
- }
-
- public native void Stop();
-
- public static native int GetMusicVolume();
-
- public static native void SetAmbientVolume(int var0);
-
- public static native String GetMusicName();
-
- public static native int GetAmbientVolume();
-
- public CodexSound(String name, int volume, int pan, int flags, int clientGuid) {
- super.guid = this.CreateLocal(((Codex)this).GetGUID(), name, volume, pan, flags, clientGuid);
- }
-
- private native int CreateLocal(int var1, String var2, int var3, int var4, int var5, int var6);
-
- public CodexSound(String name, float minDist, float maxDist, int volume, int pan, int flags, int thingGuid) {
- super.guid = this.CreateAtThing(((Codex)this).GetGUID(), name, minDist, maxDist, volume, pan, flags, thingGuid);
- }
-
- private native int CreateAtPos(int var1, String var2, float var3, float var4, int var5, int var6, int var7, float[] var8);
-
- private native int CreateAtThing(int var1, String var2, float var3, float var4, int var5, int var6, int var7, int var8);
-
- public CodexSound(String name, float minDist, float maxDist, int volume, int pan, int flags, float[] position) {
- super.guid = this.CreateAtPos(((Codex)this).GetGUID(), name, minDist, maxDist, volume, pan, flags, position);
- }
-
- public CodexSound(String name, float minDist, float maxDist, int volume, int pan, int flags, float x, float y, float z) {
- float[] pos = new float[3];
- pos[0] = x;
- pos[1] = y;
- pos[2] = z;
- super.guid = this.CreateAtPos(((Codex)this).GetGUID(), name, minDist, maxDist, volume, pan, flags, pos);
- }
-
- public static native String GetAmbientName();
-
- public static native float PlayVoice(int var0, String var1, int var2);
-
- public static native boolean StartAmbient(String var0, int var1);
-
- public static native void StopAmbient();
-
- public static native void SetMusicVolume(int var0);
- }
-